package com.love.cloud.auth.service;

import com.love.cloud.auth.vo.AuthenticationTokenVo;

import javax.servlet.http.HttpServletRequest;

/**
 *
 * @author hongdongqu
 */
public interface AuthenticationTokenService {
    /**
     * 验证token
     * @param authenticationTokenVo
     * @return
     */
    Object authenticationToken(AuthenticationTokenVo authenticationTokenVo);

    /**
     * 获取到加密的信息
     * @param request
     * @return
     */
    Object encryptedToken(HttpServletRequest request);

    /**
     * 获取到用户信息通过token
     * @param token
     * @return
     */
    Object infoByToken(String token);

}
